import axios from 'axios';
import { axiosConfig } from '../env'

const apiClient = axios.create({
  ...axiosConfig,
  timeout: 60000,
});

/**
 * 问答接口
 * @param {string} question - 用户问题
 * @returns Promise
 */
export const askQuestion = (question) => {
  return apiClient.get('/funds/qa', {
    params: {
      question: question,
    },
  }).then((response) => {
    return response.data;
  });
};


